import { CompanyController } from './controller/CompanyController';
import { NewsController } from './controller/NewsController';
import { DogController } from './controller/DogController';
import { CatController } from './controller/CatController';
import { PostController } from './controller/PostController'
import { CommentController } from './controller/CommentController'
import { ShopController } from './controller/ShopController'
import { ServiceController } from './controller/ServiceController'
export const webSiteRoutes = [
  //新闻资讯
  {
    method: 'get',
    route: '/news/list',
    controller: NewsController,
    action: 'websiteNewsList',
  },
  //公司里程

  {
    method: 'get',
    route: '/company/list',
    controller: CompanyController,
    action: 'webCompanyList',
  },

  //狗狗大全
  {
    method: 'get',
    route: '/dog/list',
    controller: DogController,
    action: 'websiteDogList',
  },
  {
    method: 'get',
    route: '/dog/detail',
    controller: DogController,
    action: 'websiteDogDetail',
  },
  //猫猫大全
  {
    method: 'get',
    route: '/cat/list',
    controller: CatController,
    action: 'websiteCatList',
  },
  {
    method: 'get',
    route: '/cat/detail',
    controller: CatController,
    action: 'websiteCatDetail',
  },
  //论坛
  {
    method: 'get',
    route: '/post/list',
    controller: PostController,
    action: 'websitePostList',
  }, {
    method: 'get',
    route: '/post/detail',
    controller: PostController,
    action: 'websitePostDetail',
  }, {
    method: 'post',
    route: '/post/add',
    controller: PostController,
    action: 'websitePostAdd',
  }, {
    method: 'get',
    route: '/comment/list',
    controller: CommentController,
    action: 'webSitePostCommentList',
  },
  {
    method: 'post',
    route: '/comment/add',
    controller: CommentController,
    action: 'websiteCommentAdd',
  },
  //商城
  {
    method: 'get',
    route: '/shop/list',
    controller: ShopController,
    action: 'websiteShopList',
  }, {
    method: 'get',
    route: '/shop/detail',
    controller: ShopController,
    action: 'websiteShopDetail',
  }, {
    method: 'post',
    route: '/shop/add',
    controller: ShopController,
    action: 'websiteShopAdd',
  },
  {
    method: 'get',
    route: '/comment/shop/list',
    controller: CommentController,
    action: 'webSiteShopCommentList',
  },
  //服务
  {
    method: 'get',
    route: '/service/list',
    controller: ServiceController,
    action: 'websiteServiceList',
  }, {
    method: 'get',
    route: '/service/detail',
    controller: ServiceController,
    action: 'websiteServiceDetail',
  },
  //测试
  {
    method: 'get',
    route: '/test/jeecg',
    controller: CatController,
    action: 'testJeecg',
  },
];
